package com.xinpu.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinpu.mapper.SalesMapper;
import com.xinpu.service.SalesService;
import com.xinpu.vo.SalesVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SalesServiceImpl implements SalesService {
    @Resource
    private SalesMapper salesMapper;

    @Override
    public Integer count() {
        return salesMapper.count();
    }

    @Override
    public IPage<SalesVo> findList(Page page, String name, Integer status, Integer role, Integer did, String tenantId) {
        return salesMapper.findList(page, name, status, role, did, tenantId);
    }
}
